﻿
package extremefx.storage {
	import flash.net.URLLoaderDataFormat;		

	/**
	 * @author Marcelo Volmaro
	 */
	public class XmlLoader extends GLoader {

		private var _xml:XML;
		
		public function XmlLoader(pUrl:*) {
			super(pUrl);
			_fmt = URLLoaderDataFormat.TEXT;
			_xml = null;
		}
		
		override protected function _onLoadComplete():void{
			_xml = new XML(_loader.data as String);
		}

		public function get xml():XML { 
			return _xml; 
		}
	}
}
